package com.itheima.dao;


import com.github.pagehelper.Page;
import com.itheima.pojo.Setmeal;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 持久层接口
 */
@Mapper
@Component
public interface SetmealDao {



    void add(Setmeal setmeal);

    void setSetmealAndCheckGroup(Map<String, Integer> map);

    List<Integer> findCheckGroupIdsBySetmealId(Integer id);

    void deleteById(Integer id);

    void deleteAssociation(Integer id);

    void edit(Setmeal setmeal);

    Page<Setmeal> selectByCondition(String queryString);

    List<Setmeal> findAll();

    Setmeal findById(Integer id);
}
